import os

# 检查环境变量并设置相应的标志
if "PYTHONINSPECT" in os.environ:
    Py_InspectFlag = True
if "PYTHONUNBUFFERED" in os.environ:
    Py_UnbufferedStdioFlag = True
if "PYTHONNOUSERSITE" in os.environ:
    Py_NoUserSiteDirectory = True

# 示例（仅在非Windows下有效）
if "warning_options" in os.environ:
    warning_list = os.environ["warning_options"].split(",")
    for opt in warning_list:
        PySys_AddWarnOptionUnicode(opt)